#!/bin/bash
cd `dirname $0`
SOURCE_DIR=`pwd`
SELF_DIR=$SOURCE_DIR
if [ -d ~/flight_chess_board_build ]
then
	echo "flight_chess_board_build exist ! will delete it."
	rm -rf ~/flight_chess_board_build
fi
echo "create build path"
mkdir -p ~/flight_chess_board_build
cd ~/flight_chess_board_build
cmake $SOURCE_DIR
make clean
make
cp -arf $SOURCE_DIR/server.conf ~/flight_chess_board_build/bin
